package com.pinecone.entity;

import java.io.Serializable;
import java.util.Date;

import com.pinecone.common.validator.group.LoginGroup;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;


/**
 * 系统用户表
 * 
 * @author hushangjie
 * @email 979783618@qq.com
 * @date 2017-09-27 21:17:59
 */
@Data
@Accessors(chain = true)
public class SysUserEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//
	private Integer userId;
	//系统用户名
    @NotNull(message = "用户名不能为空",groups = {LoginGroup.class})
	private String username;
	//系统用户密码
    @NotNull(message = "密码不能为空",groups = {LoginGroup.class})
    private String password;
	//账号是否启用：0否，1是
	private boolean enable;
	//最后一次密码重置时间
	private Date lastPasswordResetDate;
	//账号创建时间
	private Date createTime;

}
